#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    long long int age = 0;
    scanf("%lld", &age);
    printf("%lld", (long long)(age * 31560000));
    return 0;
}
